import App from '../app'
/**
 * auth true登录才能访问，false不需要登录，默认true
 */
export default [
    {
        path: '/login', //登录
        meta: { auth: false },
        component: login => require(['../pages/login/'], login)
    },
    {
        path: '/grave', //首页
        meta: { auth: false },
        query:{"hid":''},//hid=二维码
        component: grave => require(['../pages/grave/'], grave)
    },
    {
        path: '/largescreen', //大屏登录
        meta: { auth: false },
        component: largescreen => require(['../pages/largescreen/'], largescreen)
    },
    {
        path: '/biglist', //大屏list
        meta: { auth: false },
        component: biglist => require(['../pages/biglist/'], biglist)
    },
    {
        path: '/signout', //退出
        component: signout => require(['../pages/signout/'], signout)
    },
    {
        path: '/home', //个人主页
        component: home => require(['../pages/home/'], home)
    },
    {
        path: '/homeShow', //公开传记展示
        meta: { auth: false },
        component: homeShow => require(['../pages/homeShow/'], homeShow)
    },
    {
        path: '/helpCenter', //帮助中心
        meta: { auth: false },
        component: helpCenter => require(['../pages/helpCenter/'], helpCenter)
    },
    {
        path: '/course', //图文教程
        meta: { auth: false },
        component: course => require(['../pages/course/'], course)
    },
    {
        path: '/checkRule', //审核规则
        meta: { auth: false },
        component: checkRule => require(['../pages/checkRule/'], checkRule)
    },
    {
        path: '/getMbewm', //获取墓碑二维码规则
        meta: { auth: false },
        component: getMbewm => require(['../pages/getMbewm/'], getMbewm)
    },
    {
        path: '/serviceAgreement', //用户服务协议
        meta: { auth: false },
        component: serviceAgreement => require(['../pages/serviceAgreement/'], serviceAgreement)
    },
    {
        path: '/faq', //常见问题
        meta: { auth: false },
        component: faq => require(['../pages/faq/'], faq)
    },
    {
        path: '/templateList', //模板列表
        query:{"s":"","isChoose":""},
        component: templateList => require(['../pages/templateList/'], templateList)
    },
    {
        path: '/templateEdit', //模版编辑     
        query:{"nid":'',"mid":''},//nid=新的模板ID,mid=墓主ID         
        component: templateEdit => require(['../pages/templateEdit/'], templateEdit)
    },
    {
        path: '/index', //首页
        query:{"code":''},
        component: index => require(['../pages/index/'], index)
    },
    {
        path: '/test', //首页
        meta: { auth: false },
        component: resolve => require(['../pages/test/'], resolve)
    },
    {
        path: '/test2', //练习页面
        meta: { auth: false },
        component: resolve => require(['../pages/test2/'], resolve)
    },
    {
        path: '/map', //地图
        meta: { auth: false },
        query:{"cemeteryId":''},//陵园ID
        component: resolve => require(['../pages/map/'], resolve)
    },
    {
        path: '/cmt', //手机页面
        meta: { auth: false },
        query:{"hid":''},//hid=二维码
        component: resolve => require(['../pages/cmt/'], resolve)
    },
    {
        path: '/cemeteryvisit', //手机页面
        meta: { auth: false },
        query:{"qrCode":''},//qrCode = 墓碑二维码
        component: resolve => require(['../pages/cemeteryvisit/'], resolve)
    },
    {
        path: '/biographyList', //手机页面-传记列表
        meta: { auth: false },
        query:{"qrCode":''},//qrCode = 墓碑二维码
        component: resolve => require(['../pages/biographyList/'], resolve)
    },
    {
        path: '/aboutCemetery', //手机页面-关于陵园
        meta: { auth: false },
        query:{"qrCode":'',"cemeteryId":""},//qrCode = 墓碑二维码
        component: resolve => require(['../pages/aboutCemetery/'], resolve)
    },
    {
        path: '/technicalSupport', //移动端-技术支持
        meta: { auth: false },
        component: resolve => require(['../pages/technicalSupport/'], resolve)
    },
    {
        path: '/lifebookpreview', //手机页面
        meta: { auth: false },
        query:{"hid":'',"sessionId":''},//hid=二维码
        component: resolve => require(['../pages/lifebookpreview/'], resolve)
    },
    {
        path: '/returnlogin', //空页面
        meta: { auth: false },
        component: resolve => require(['../pages/returnlogin/'], resolve)
    },
    {
        path: '/authorization', //空页面
        meta: { auth: false },
        component: resolve => require(['../pages/authorization/'], resolve)
    },
    {
        path: '/returnqqlogin', //空页面
        meta: { auth: false },
        component: resolve => require(['../pages/returnqqlogin/'], resolve)
    },
    {
        path: '/returnqqbind', //空页面
        meta: { auth: false },
        component: resolve => require(['../pages/returnqqbind/'], resolve)
    },
    {
        path: '/mobliefeedback', //移动端客服反馈列表
        meta: { auth: false },
        component: resolve => require(['../pages/mobliefeedback/'], resolve)
    },
    {
        path: '/feedbackinfo', //移动端 客服反馈详情
        meta: { auth: false },
        component: resolve => require(['../pages/feedbackinfo/'], resolve)
    },
    {
        path: '/notewm', //移动端 二维码失效页面
        meta: { auth: false },
        component: resolve => require(['../pages/notewm/'], resolve)
    },
    {
        path: '/notData', //移动端 陵园参观无数据页面
        meta: { auth: false },
        component: resolve => require(['../pages/notData/'], resolve)
    },
    {
        path: '/notzj', //移动端 无传记页面
        meta: { auth: false },
        component: resolve => require(['../pages/notzj/'], resolve)
    },
    {
        path: '/zjInvalid', //移动端 临时预览页面失效
        meta: { auth: false },
        component: resolve => require(['../pages/zjInvalid/'], resolve)
    },
    {
        path: '/interfaceException', //移动端 接口异常跳转页面
        meta: { auth: false },
        component: resolve => require(['../pages/interfaceException/'], resolve)
    },
    {
        path: '/workshow', //移动端 作品展示页面
        meta: { auth: false },
        component: resolve => require(['../pages/workshow/'], resolve)
    },
    {
        path: '/comment', //移动端 留言评论页面
        meta: { auth: false },
        component: resolve => require(['../pages/comment/'], resolve)
    },
    {
        path: '/usercenter', //个人中心页面 个人资料   
        component: usercenter => require(['../pages/usercenter/'], usercenter)
    },
    {
        path: '/usercenterSafe', //个人中心页面 安全设置
        component: usercenterSafe => require(['../pages/usercenterSafe/'], usercenterSafe)
    },
    {
        path: '/usercenterZj', //个人中心页面 传记信息
        component: usercenterZj => require(['../pages/usercenterZj/'], usercenterZj)
    },
    {
        path: '/usercenterMessage', //个人中心页面  消息中心
        component: usercenterMessage => require(['../pages/usercenterMessage/'], usercenterMessage)
    },
    {
        path: '/publish', //传记发布之后页面
        meta: { auth: false },
        component: publish => require(['../pages/publish/'], publish)
    },
    {
        path: '/aboutus', //关于我们
        meta: { auth: false },
        component: aboutus => require(['../pages/aboutus/'], aboutus)
    },
    {
        path: '/park', //陵园二维码
        meta: { auth: false },
        query:{"hid":''},//hid=二维码
        component: park => require(['../pages/park/'], park)
    },
    {
        path: '/unchecked', //未审核过页面
        meta: { auth: false },
        query:{"type":''},//type 类型
        component: resolve => require(['../pages/unchecked/'], resolve)
    },
    {
        path: '*', //其他页面，强制跳转到登录页面
        redirect: '/index'
    },
    
]